Revert "gui: do not allow MainWindow to be resized"
authorJyrki Gadinger <nilsding@nilsding.org>
Tue, 4 Mar 2025 10:07:53 +0000 (11:07 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 4 Mar 2025 10:12:57 +0000 (10:12 +0000)
This reverts commit 0963856a941e85881cc82b254585fc76bf5b3aa0.

turns out it's fine on Sonoma, whereas it breaks on Sequoia (the window
now gets stuck below the menubar) -- maybe I'll open up a QTBUG later if
I can reproduce this with a minimal example

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/tray/MainWindow.qml

index a30f4fc9375d3c8dafd9b6765e4afba47fa33314..cf13b90be918be7fc28e591b1abce1aeca397633 100644 (file)
@@ -43,16 +43,7 @@ ApplicationWindow {
 \r
     readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth\r
 \r
-    Component.onCompleted: {\r
-        Systray.forceWindowInit(trayWindow)\r
-        if (Systray.useNormalWindow) {\r
-            return;\r
-        }\r
-\r
-        // do not allow this window to be resized when it's frameless\r
-        this.minimumWidth = this.maximumWidth = this.width\r
-        this.minimumHeight = this.maximumHeight = this.height\r
-    }\r
+    Component.onCompleted: Systray.forceWindowInit(trayWindow)\r
 \r
     // Close tray window when focus is lost (e.g. click somewhere else on the screen)\r
     onActiveChanged: {\r